import 'package:get/get.dart';
import 'package:moonplay/pages/app_home.dart';
import 'package:moonplay/pages/app_index.dart';
import 'package:moonplay/pages/common_page/common_webview_page.dart';
import 'package:moonplay/pages/views/index/search_page.dart';
import 'package:moonplay/pages/views/index/video_detail_page.dart';
import 'package:moonplay/pages/views/my/history_page.dart';
import 'package:moonplay/pages/views/my/login_page.dart';
import 'package:moonplay/pages/views/my/setTing_page.dart';



class AppPages {
  static const INITIAL = '/AppHomePage';
  static Transition defaultType = Transition.cupertino;   //默认转场
  static Transition defaultDownToUp = Transition.downToUp;   //从下到上
  static Transition defaultFade = Transition.fade;   //渐显

  static final routes = [
    GetPage(title: '主页', name: '/AppHomePage', page: () => AppHomePage(), transition: defaultFade),
    GetPage(title: 'tabbar首页', name: '/AppIndexPage', page: () => AppIndexPage(), transition: defaultFade),
    GetPage(title: '设置', name: '/SetTingPage', page: () => SetTingPage(), transition: defaultType),
    GetPage(title: '影视详情', name: '/VideoDetailPage', page: () => VideoDetailPage(), transition: defaultType),
    GetPage(title: '搜索', name: '/SearchPage', page: () => SearchPage(), transition: defaultType),
    GetPage(title: '历史记录', name: '/HistoryPage', page: () => HistoryPage(), transition: defaultType),
    GetPage(title: '登录', name: '/LoginPage', page: () => LoginPage(), transition: defaultDownToUp),
    GetPage(title: 'webview', name: '/CommonWebviewPage', page: () => CommonWebviewPage(), transition: defaultType),
  ];
}
